import React,{ Component }from 'react'
import {
    View,
    Text,
    Image,
    Dimensions,
    StyleSheet,
}from 'react-native'
import BasePage from '../BasePage'
import NavigationBar from 'teaset/components/NavigationBar/NavigationBar';
import Video from 'react-native-video'
export default class VideoPlayerPage extends BasePage{
    renderNavigationBar (){
        return (
            <NavigationBar
                title={'视频'}
                backgroundColor='#4195D5'
                leftView={ <NavigationBar.BackButton  onPress={() => this.navigator.pop()} />}  
            />
        );
    }
    renderPage(){
        return(
            <View style={{flex:1, backgroundColor:'orange'}}>
                <Video
                    source={{ uri:'https://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_10mb.mp4' }}
                    style={{marginTop:120, height:240}}
                />
            </View>
        );
    }
}
